﻿@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_JuiLayout.cshtml";

    Dictionary<string, object> dic_M = Model;

    string userName = selectControlBLL.getNameById("id", dic_M["UserId"].ToString(), "Sys_IBUsers", "RealName");

    string rturl = "/SysMenu/List?menu=UserRole&name=ListById&hostId=" + dic_M["UserId"];
}
@section header {}
<div id="layout" class="noNavTab">
    <div id="navTab">
        <h2 class="contentTitle">
            修改角色权限</h2>
        <div class="pageContent">
            <div class="pageFormContent nowrap" layouth="56">
                @{
                    int id = Utils.StrToInt(ViewData["id"], 0);
                    using (Html.BeginForm("Edit", "OperateTotal", new { id = id, dtnum = (int)Database.Default, name = DencryptHelper.Encrypt("Sys_IBUserRoles"), url = rturl }, FormMethod.Post, new { @id = "subForm", @class = "pageForm required-validate", onsubmit = "return validateCallback(this,navTabAjaxDone)" }))
                    {

                    <dl>
                        <dt>用户： </dt>
                        <dd>
                            @userName
                        </dd>
                    </dl>
                    <dl>
                        <dt>权限值：</dt>
                        <dd>
                            @Html.TextBox("t0_LevelValue", dic_M["LevelValue"], new { @class = "required textInput digits", maxlength = "3" })
                        </dd>
                    </dl>
                    <dl>
                        <dt>&nbsp</dt>
                        <dd>
                            <div class="buttonActive">
                                <div class="buttonContent">
                                    <button type="submit">
                                        修改</button></div>
                            </div>
                        </dd>
                        <dd><a class="button" href='@rturl'><span>返回</span></a></dd>
                    </dl>
                        }
                    }
                
            </div>
        </div>
    </div>
</div>

<link href="../../content/jui-normal.css" rel="stylesheet" type="text/css" />

